package com.dzy.api;

import com.dzy.VO.ItemStockVO;
import com.dzy.model.TbItem;
import com.dzy.model.TbSeller;
import com.dzy.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("dongdongshop-seller-service")
public interface SellerAPI {
    @GetMapping("seller/getByUsername")
    public TbSeller getByUsername(@RequestParam String username);

    @GetMapping("item/selectByItemId")
    public TbItem selectByItemId(@RequestParam Long itemId);

    @PostMapping("item/updateStockByItemId")
    public JsonResult updateStockByItemId(@RequestBody ItemStockVO itemStockVOS);
}
